import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ObserversModule } from '@angular/cdk/observers';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { PortalModule } from '@angular/cdk/portal';
import { IconModule } from '../icon/api';
import { ButtonModule } from '../button/api';
import { OverlaysModule } from '../core/overlay/api';
import { I18NModule } from '../core/i18n/api';
import { TooltipModule } from '../tooltip/api';
import { OverflowModule } from '../overflow/api';
import { ModalComponent, SafeHtmlPipe } from './modal.component';

@NgModule({
  declarations: [ModalComponent, SafeHtmlPipe],
  imports: [
    CommonModule,
    ObserversModule,
    DragDropModule,
    IconModule,
    ButtonModule,
    PortalModule,
    OverlaysModule,
    I18NModule,
    TooltipModule,
    OverflowModule,
  ],
  exports: [ModalComponent],
})
export class ModalModule {}
